package com.bw.ae.nexus.domain;


/**
 *  发送请求的URL地址
 * Created by Xiaosiyuan on 2016/8/23.
 */
public class URLInfo {


    /*static{
        Resource resource=new ClassPathResource("nexus.properties");
        Properties properties=new Properties();
        try {
            properties= PropertiesLoaderUtils.loadProperties(resource);

            CREATEURL="http://nexusUrl/service/siesta/rest/v1/script".replace("nexusUrl", properties.getProperty("url"));
            RUNURL="http://nexusUrl/service/siesta/rest/v1/script/?/run".replace("nexusUrl",properties.getProperty("url"));
            REMOVEURL="http://nexusUrl/service/siesta/rest/v1/script/?".replace("nexusUrl",properties.getProperty("url"));
            LISTURL="http://nexusUrl/service/siesta/rest/v1/script".replace("nexusUrl",properties.getProperty("url"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }*/
    /**
     * 创建script的URL地址
     */
    public static String CREATEURL="http://nexusUrl/service/siesta/rest/v1/script";
    /**
     * 运行script的URL地址
     */
    public static String RUNURL="http://nexusUrl/service/siesta/rest/v1/script/?/run";
    /**
     * 删除script的URL地址
     */
    public static String REMOVEURL="http://nexusUrl/service/siesta/rest/v1/script/?";
    /**
     * 查看所有script的URL地址
     */
    public static String LISTURL="http://nexusUrl/service/siesta/rest/v1/script";
}
